class OsnNotifyUpdateGroupName: OsnNotifyContent {
    var groupId = ""
    var groupName = ""

    override init(){
        super.init()
        contentType = OsnMessageContentType.notify_update_group_name
    }
    override func toJson() ->[String:Any] {
        var json = super.toJson()
        json["type"] = "notify_update_group_name"
        json["groupId"] = groupId
        json["groupName"] = groupName
        return json
    }
    static func fromJson(_ data:[String:Any])->OsnNotifyUpdateGroupName{
        let c = OsnNotifyUpdateGroupName()
        super.fromJson(c, data)
        c.groupId = data["groupId"] as? String ?? ""
        c.groupName = data["groupName"] as? String ?? ""
        return c
    }

}
